<?php
	
	require_once "Zend/Json.php";
	require_once "Zend/Validate/Alnum.php";
	$name = $_POST['name'];
	$accept = $_POST['accept'];
	$shortdesc = $_POST['sdesc'];
	$status = $_POST['status'];
	$description = $_POST['description'];
	
	$params = array (
		"type" => $name,
	);
	
	echo Zend_Json::encode( $plugins -> pagegroup -> addPermission( new Zend_Config ( $params ) ) );
